package zust.study.io;

import java.io.*;

public class Play01_字节流输出文字文件 {

    public static void main(String[] args) throws IOException {
        String str = new String("test for Play01_");
        byte[] bytes = str.getBytes();
        File file = new File("c:/files/Java/IO/Play01_.txt");
        OutputStream os = new FileOutputStream(file);
        os.write(bytes);
        os.close();
    }

}
